<?php
namespace bee;

define("PK_AUTO_GENERATED",     1);
define("PK_MUST_BE_SET",        2);

/**
 * 
 * @author dzelenika
 *
 * @todo klasa sloga tablice, podržava uređivanje sloga i šifrante (liste)
 */
abstract class recordForm extends form
{ 
  /**
    * 
    * @var DAO
  */
  protected $__record;
  protected $__recordName;
  protected $__arrays;
  protected $__error;

  protected $__PKname;
  protected $__PKtype;
  public function createForm($evt)
  { $trn = $this->__recordName;
    $this->__record = new $trn();
    if(isset($evt["id"]))
    { $this->__record->SELECT($evt["id"]);
    }
    $komitent = new bee\org_unit();
    $rs_komitent = new bee\rowSet($komitent);
    $this->arr_komitent = $rs_komitent->getList("name", "id");
  }

  public function add($evt)
  {
    
  }
  public function update($evt);
  public function delete($evt); 
  
} 